package com.wobito.pojo.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lambyang
 * @since 2024-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_person")
@AllArgsConstructor
@NoArgsConstructor
public class Person implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 姓名
     */
    private String name;

    /**
     * ic卡编号
     */
    private String icCode;

    /**
     * 柜子id
     */
    private Long cabinetId;

    private Integer isDeleted;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    public Person(Long id, Integer isDeleted) {
        this.id = id;
        this.isDeleted = isDeleted;
    }

    public Person(String name, String icCode, Long cabinetId) {
        this.name = name;
        this.icCode = icCode;
        this.cabinetId = cabinetId;
    }
}
